/*
 *  WMaterial.h
 *  GLRender
 *
 *  Created by Patrick zulian on 5/23/10.
 *  Copyright 2010 University  of Lugano. All rights reserved.
 *
 */

#ifndef W_MATERIAL_H
#define W_MATERIAL_H

#include "Base.h"
#include <QtOpenGL>


class WMaterial {
public:
	RGBd emmission, ambient, diffuse, specular;
	double shininess;
	int target;
	
	WMaterial(const RGBd &diffuse = RGBd(1.0, 1.0, 1.0), int target = GL_FRONT);
	virtual
	~WMaterial() { }
	
	void set();
	
	
	void setForLight();
	
	
	void setForLight(int target);
};



#endif
